// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入jq
//引入echart
import echarts from 'echarts'
import '../static/css/base.css'
//引入公共css
import '../static/css/generality.css'

import '../static/font/iconfont.css'
import '../static/font_2/iconfont.css'
//引入element
import ElementUI from 'element-ui'
import '../static/theme/index.css'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
//Axios:引入axios
import Axios from 'axios';
import * as d3 from "d3";

Vue.prototype.$echarts = echarts

// import '../static/element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

Vue.config.productionTip = false


Vue.use(Viewer)
Viewer.setDefaults({
  Options: {
    'inline': true,
    'button': true,
    'navbar': true,
    'title': true,
    'toolbar': true,
    'tooltip': true,
    'movable': true,
    'zoomable': true,
    'rotatable': true,
    'scalable': true,
    'transition': true,
    'fullscreen': true,
    'keyboard': true,
    'url': 'data-source'
  }
})

//Axios:挂载原型
Vue.prototype.$axios = Axios;

Vue.prototype.$d3 = d3;
window.d3 = d3;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
